package com.silverhaze.web.data.wot;

import com.silverhaze.web.data.DatabaseEntity;

/**
 * User: Babanin
 * Date: 26.11.11
 * Time: 0:10
 */
public class WoTTank extends DatabaseEntity {
    private String tankName;
    private String tankImageUrl;

    public String getTankName() {
        return tankName;
    }

    public void setTankName(String tankName) {
        this.tankName = tankName;
    }

    public String getTankImageUrl() {
        return tankImageUrl;
    }

    public void setTankImageUrl(String tankImageUrl) {
        this.tankImageUrl = tankImageUrl;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        WoTTank woTTank = (WoTTank) o;

        if (tankImageUrl != null ? !tankImageUrl.equals(woTTank.tankImageUrl) : woTTank.tankImageUrl != null)
            return false;
        if (tankName != null ? !tankName.equals(woTTank.tankName) : woTTank.tankName != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return tankName != null ? tankName.hashCode() : 0;
    }
}
